
package pe.com.bn.sach.domain;

/**
 * Bnchf23ExpIngrTitAdicId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Bnchf23ExpIngrTitAdicId implements java.io.Serializable {

	// Fields

	private Bnchf13Expediente bnchf13Expediente;
	private Bnchf59TipoRenta bnchf59TipoRenta;

	// Constructors

	/** default constructor */
	public Bnchf23ExpIngrTitAdicId() {
		
		 bnchf13Expediente=new Bnchf13Expediente();
		bnchf59TipoRenta=new Bnchf59TipoRenta ();
	}

	/** full constructor */
	public Bnchf23ExpIngrTitAdicId(Bnchf13Expediente bnchf13Expediente,
			Bnchf59TipoRenta bnchf59TipoRenta) {
		this.bnchf13Expediente = bnchf13Expediente;
		this.bnchf59TipoRenta = bnchf59TipoRenta;
	}

	// Property accessors

	public Bnchf13Expediente getBnchf13Expediente() {
		return this.bnchf13Expediente;
	}

	public void setBnchf13Expediente(Bnchf13Expediente bnchf13Expediente) {
		this.bnchf13Expediente = bnchf13Expediente;
	}

	public Bnchf59TipoRenta getBnchf59TipoRenta() {
		return this.bnchf59TipoRenta;
	}

	public void setBnchf59TipoRenta(Bnchf59TipoRenta bnchf59TipoRenta) {
		this.bnchf59TipoRenta = bnchf59TipoRenta;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bnchf23ExpIngrTitAdicId))
			return false;
		Bnchf23ExpIngrTitAdicId castOther = (Bnchf23ExpIngrTitAdicId) other;

		return ((this.getBnchf13Expediente() == castOther
				.getBnchf13Expediente()) || (this.getBnchf13Expediente() != null
				&& castOther.getBnchf13Expediente() != null && this
				.getBnchf13Expediente()
				.equals(castOther.getBnchf13Expediente())))
				&& ((this.getBnchf59TipoRenta() == castOther
						.getBnchf59TipoRenta()) || (this.getBnchf59TipoRenta() != null
						&& castOther.getBnchf59TipoRenta() != null && this
						.getBnchf59TipoRenta().equals(
								castOther.getBnchf59TipoRenta())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getBnchf13Expediente() == null ? 0 : this
						.getBnchf13Expediente().hashCode());
		result = 37
				* result
				+ (getBnchf59TipoRenta() == null ? 0 : this
						.getBnchf59TipoRenta().hashCode());
		return result;
	}

}